package com.qf.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@RestController
public class DateController {
    @RequestMapping("/date")
    public Map<String,Object> getDate(){
        Date date = new Date();
        HashMap<String, Object> map = new HashMap<>();
        map.put("date",date);
   return map;
    }
}
